<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>行布局</title>
    <style>
        body{
            margin: 0;padding: 0;color: #ffffff;
           }
        .container{width: 800px;
            height: 1000px;
            background: #4c77f2;
            /*margin: 0 auto;*/
            text-align: center;
        }
        .header{
            width:100%;
            height: 50px;
            background: #333;
            margin: 0 auto;
            text-align: center;
            font-size: 16px;
            line-height: 50px;
            position: fixed;
        }
        .footer{
            width: 800px;
            height: 100px;
            background: #333;
            margin: 0 auto;
            text-align: center;
            font-size: 16px;
            line-height: 100px;
        }
        .banner{
            width: 800px;
            height: 300px;
            background: #30a457;
            margin: 0 auto;
            text-align: center;
            font-size: 16px;
            line-height: 300px;
        }
    </style>
</head>
<body>
    <div class="header">这是页面头部</div>
    <div class="banner">这是页面banner图</div>
    <div class="container">这是页面内容</div>
    <div class="footer">这是页面底部</div>
</body>
</html>




